home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 3: CDPD 3 / Almathera Ten on Ten - Disc 3: CDPD3.iso / jam / jamdisk7 / inc9110b.lzh / include / stdlib.h < prev    next >
C/C++ Source or Header  |  1991-10-12  |  2KB  |  79 lines

  1. /*
  2.  * Libraries and headers for PDC release 3.3 (C) 1989 Lionel Hummel.
  3.  * PDC Software Distribution (C) 1989 Lionel Hummel and Paul Petersen.
  4.  * PDC I/O Library (C) 1987 by J.A. Lydiatt.
  5.  *
  6.  * This code is freely redistributable upon the conditions that this
  7.  * notice remains intact and that modified versions of this file not
  8.  * be included as part of the PDC Software Distribution without the
  9.  * express consent of the copyright holders.  No warrantee of any
  10.  * kind is provided with this code.  For further information, contact:
  11.  *
  12.  *  PDC Software Distribution    Internet:                     BIX:
  13.  *  P.O. Box 4006             or hummel@cs.uiuc.edu            lhummel
  14.  *  Urbana, IL  61801-8801       petersen@uicsrd.csrd.uiuc.edu
  15.  */
  16.  
  17. /*
  18.  * stdlib.h - Declarations for functions in the standard C library
  19.  *
  20.  * 3.3.91 sjw; use K&R2 prototypes
  21.  * 17.3.91 sjw; more work
  22.  * 15.4.91 sjw; added RAND_MAX
  23.  * 12.10.91 sjw; implement abs(), labs()
  24.  */
  25.  
  26. #ifndef __STDLIB_H__
  27. #define __STDLIB_H__
  28.  
  29. #ifndef __STDDEF_H__
  30. #include <stddef.h>
  31. #endif
  32.  
  33. double        atof(const char *s);
  34. int           atoi(const char *s);
  35. long          atol(const char *s);
  36. double        strtod(const char *s, char **endp);
  37. long          strtol(const char *s, char **endp, int base);
  38. unsigned long strtoul(const char *s, char **endp, int base);
  39. #define       RAND_MAX 0x7fffffff
  40. int           rand(void);
  41. void          srand(unsigned int seed);
  42. void         *calloc(size_t nobj, size_t size);
  43. void         *malloc(size_t size);
  44. void         *realloc(void *p, size_t size);
  45. void          free(void *p);
  46. void          abort(void);
  47. void          exit(int status);
  48. int           atexit(void (*fcn)(void));
  49. int           system(const char *s);
  50. char         *getenv(const char *name);
  51. int           setenv(const char *name, const char *value);
  52. int           putenv(const char *expression);
  53. void          qsort(void *base,
  54.                     size_t n,
  55.                     size_t size,
  56.                     int (*cmp)(const void *, const void *));
  57. int           abs(int n);
  58. long          labs(long n);
  59.  
  60. #if 0                    /* Not yet implemented */
  61. typedef struct {
  62.     int quot;
  63.     int rem;
  64.     } div_t;
  65.  
  66. typedef struct {
  67.     long quot;
  68.     long rem;
  69.     } ldiv_t;
  70.  
  71. char         *bsearch(char *, char *, unsigned, int, int (*compar)());
  72. div_t         div(int, int);
  73. ldiv_t        ldiv(long, long);
  74. #endif /* 0 */
  75.  
  76. #endif /* __STDLIB_H__ */
  77.  
  78.  
  79.